-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[java] JSpecify annotations for Credential and MBean
#16481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
1879c49 to
756b7a9
Compare
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||||
User description
🔗 Related Issues
Related #14291
💥 What does this PR do?
JSpecify annotations added to the:
org.openqa.selenium.grid.jmx.MBeanorg.openqa.selenium.virtualauthenticator.Credential🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes
PR Type
Enhancement
Description
Add JSpecify null-safety annotations to
MBeanclassAdd JSpecify null-safety annotations to
CredentialclassImprove null-safety handling in attribute and operation invocation methods
Add defensive null checks for map lookups in getter/setter/invoke operations
Diagram Walkthrough
File Walkthrough
MBean.java
Add JSpecify null-safety annotations and null checksjava/src/org/openqa/selenium/grid/jmx/MBean.java
@NullMarkedclass-level annotation for null-safety@Nullableannotations to method return types and parameters(getter, setter, and various finder methods)
getAttribute(),setAttribute(), andinvoke()methods to handle null map lookupsAttributeInfoandOperationInfohandlingCredential.java
Add JSpecify null-safety annotations to Credentialjava/src/org/openqa/selenium/virtualauthenticator/Credential.java
@Nullableannotation torpIdfield andgetRpId()method returntype
@Nullableannotation totoMap()method return type for map valuesrpId